<?php
  require(dirname(__FILE__).'/global.php'); 
  require(ROOT.'/admin/isLogin.php'); 
  
  $submit = $_POST['submit'];
  if(isset($submit))
  {
      require(ROOT.'/include/file.class.php');
      $files = FileUtil::getUnwritableFile(ROOT);
      $tip = '';
      if(count($files) == 0)
      {
          $tip = '全部文件符合要求';
      }
      $smarty->assign('files',$files);
      $smarty->assign('tip',$tip);   
  } 
  $smarty->display('file_check.html');
  $db->close();
?>
